package com.atguigu.eduservice.client;

import com.atguigu.commonutils.vo.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: LDeng
 * @Date: 2022-01-21 11:02 AM
 */
@FeignClient(name="service-ucenter",fallback=UcenterClientImpl.class)
@Component
public interface UcenterClient {
    /**
     * 根据用户id获取用户信息
     * @param memberId
     * @return
     */
    @GetMapping("/educenter/member/getInfoUc/{memberId}")
    public UcenterMember getMemberInfo(@PathVariable("memberId") String memberId);


}

